package com.lxw.study.aop;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Component
@Aspect
@Slf4j
public class HelloControllerAop {
    @Pointcut("execution(* com.lxw.study.controller..*.*(..))")
    private void pointCut() {
    }
    @Before("pointCut()")
    public void printBeforeTime() {
        System.out.println("---------------Before CurrentTime = " + System.currentTimeMillis());
    }
}
